package com.aaa.tars.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @FileName: Menu
 * @Description:
 * @Author: xm
 * @CreateTime: 2025/9/10 15:32
 * @Version: 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Menu {
    private Integer menuId;
    private String menuName;
    private Integer parentId;
    private Integer orderNum;
    private String url;
    private String menuType; // M/C/F
    private String visible;  // 0/1
    private String perms;
    private String icon;
    private String createBy;
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "UTC")
    private LocalDateTime createTime;
    private String updateBy;
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "UTC")
    private LocalDateTime updateTime;
    private String remark;
}
